package org.mikhaylov.cp.service.command.impl;

import javax.servlet.http.HttpServletRequest;

import org.mikhaylov.cp.service.command.ServiceCommand;
import org.mikhaylov.cp.service.response.ResponseType;

public class NoServiceCommand extends ServiceCommand {

	private static final long serialVersionUID = -1262752230647709405L;

	@Override
	protected boolean checkParams(HttpServletRequest request) {
		return true;
	}

	@Override
	protected boolean extractParams(HttpServletRequest request) {
		return true;
	}

	@Override
	protected void process(HttpServletRequest request) {
		response.setMeta("No command found");
		response.setType(ResponseType.ERROR);
	}
}
